var route = '',
    site = '';
function setSite(title) {
    if (!route && !site) {
        document.title = 'loading...'
    } else if (!route && site) {
        document.title = site
    } else if (!site && route) {
        document.title = route
    } else {
        document.title = route + '-' + site
    }
}

export default {


    setRouterTitle(title) {
        route = title;
        setSite(title)
    },
    setSiteTitle(title) {
        site = title;
        setSite(title)
    }
}